<script >
export default {
    data() {
        return {
            show: false
        }
    },
    methods: {
        settime() {
            this.show = !this.show
            setTimeout(() => {
                this.show = !this.show
            }, 100);
        }
    }
}
</script>

<template>
    <div>
        <input type="button" value="点点看" v-on:click="settime">
        <div v-show="show">
            这是一个被隐藏的
        </div>
    </div>
</template>

<style scoped></style>
